package com.stylefeng.guns.modular.platform.model;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 订单信息
 * </p>
 *
 * @author stylefeng123
 * @since 2018-07-13
 */
@TableName("platform_order_info")
public class OrderInfo extends Model<OrderInfo> {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	private Integer id;
	/**
	 * 订单id
	 */
	@TableField("order_id")
	private String orderId;

	/**
	 * 小程序appSecret
	 */
	private String appSecret;

	/**
	 * appid
	 */
	private String appid;
	/**
	 * 用户id
	 */
	@TableField("user_id")
	private Integer userId;
	/**
	 * 需求类型(0:买家需求,1卖家需求)
	 */
	private String type;
	/**
	 * 买家需求id
	 */
	@TableField("buyer_demand_id")
	private Integer buyerDemandId;
	/**
	 * 卖家需求id
	 */
	@TableField("seller_demand_id")
	private Integer sellerDemandId;
	/**
	 * 金额(分)
	 */
	private Integer amount;
	/**
	 * 状态(0:待支付1已支付2支付失败)
	 */
	private Integer status;
	/**
	 * 支付时间
	 */
	@TableField("pay_time")
	private String payTime;
	/**
	 * 备注
	 */
	private String remarks;
	/**
	 * 创建人
	 */
	@TableField("created_by")
	private String createdBy;
	/**
	 * 创建时间
	 */
	@TableField("gmt_create")
	private Date gmtCreate;
	/**
	 * 更新人
	 */
	@TableField("last_updated_by")
	private String lastUpdatedBy;
	/**
	 * 更新时间
	 */
	@TableField("gmt_last_update")
	private Date gmtLastUpdate;

	@TableField(exist = false)
	private String endTime;

	@TableField(exist = false)
	private String beginTime;

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public String getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(String beginTime) {
		this.beginTime = beginTime;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Integer getBuyerDemandId() {
		return buyerDemandId;
	}

	public void setBuyerDemandId(Integer buyerDemandId) {
		this.buyerDemandId = buyerDemandId;
	}

	public Integer getSellerDemandId() {
		return sellerDemandId;
	}

	public void setSellerDemandId(Integer sellerDemandId) {
		this.sellerDemandId = sellerDemandId;
	}

	public Integer getAmount() {
		return amount;
	}

	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getPayTime() {
		return payTime;
	}

	public void setPayTime(String payTime) {
		this.payTime = payTime;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public String getLastUpdatedBy() {
		return lastUpdatedBy;
	}

	public void setLastUpdatedBy(String lastUpdatedBy) {
		this.lastUpdatedBy = lastUpdatedBy;
	}

	public Date getGmtLastUpdate() {
		return gmtLastUpdate;
	}

	public void setGmtLastUpdate(Date gmtLastUpdate) {
		this.gmtLastUpdate = gmtLastUpdate;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	public String getAppSecret() {
		return appSecret;
	}

	public void setAppSecret(String appSecret) {
		this.appSecret = appSecret;
	}

	public String getAppid() {
		return appid;
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}

	@Override
	public String toString() {
		return "OrderInfo{" + "id=" + id + ", orderId=" + orderId + ", userId=" + userId + ", type=" + type
				+ ", buyerDemandId=" + buyerDemandId + ", sellerDemandId=" + sellerDemandId + ", amount=" + amount
				+ ", status=" + status + ", payTime=" + payTime + ", remarks=" + remarks + ", createdBy=" + createdBy
				+ ", gmtCreate=" + gmtCreate + ", lastUpdatedBy=" + lastUpdatedBy + ", gmtLastUpdate=" + gmtLastUpdate
				+ "}";
	}
}
